package com.pospi.util;

import android.content.Context;

import com.digi.port.*;
import com.digi.port.Printer;
import com.pospi.dto.OrderDto;

/**
 * Created by acer on 2018/10/12.
 */

public class SGprint implements MyPrinter {
    private Context context;
    private OrderDto dto;

    public SGprint(Context context, OrderDto orderDto ) {
        this.context = context;
        dto = orderDto;
    }

    @Override
    public void starPrint() {
        Printer.printer1PrintBitmap(StarPrintHelper.creatImage(dto, context));
        Printer.printer1FeedPaper(3);
        Printer.printer1CutPaper();
    }
}
